import 'dart:convert';
import 'dart:typed_data';

import 'package:flutter_test/flutter_test.dart';
import 'package:logger/logger.dart';

void main() {
  var _logger = Logger(printer: PrettyPrinter(),);

  test("parse server emojiStr", () async {
    Uint8List bytes = Uint8List(5);
    Int8List l = Int8List(5);

    var bdata = ByteData(8);
    ByteData.sublistView(bytes, 0);

    String str = "Hello, Dart!阿士大夫阿斯顿发发";
    var encodedString = utf8.encode(str);

    String str2 = utf8.decode(encodedString);
    print(str2);

  });
}